# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	corebird
PORTVERSION=	0.9
CATEGORIES=	net-im
MASTER_SITES=	GH GHC

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	GTK3 Twitter client written in Vala

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	valac:${PORTSDIR}/lang/vala
LIB_DEPENDS=	libsoup-2.4.so:${PORTSDIR}/devel/libsoup \
	libnotify.so:${PORTSDIR}/devel/libnotify \
	libjson-glib-1.0.so:${PORTSDIR}/devel/json-glib \
	librest-0.7.so:${PORTSDIR}/devel/librest \
	libgee-0.8.so:${PORTSDIR}/devel/libgee

GH_ACCOUNT=	baedert
GH_PROJECT=	${PORTNAME}
GH_TAGNAME=	${PORTVERSION}
GH_COMMIT=	d765b0d

USE_GITHUB=	yes
USES=	pkgconfig gmake gettext autoreconf
GNU_CONFIGURE=	yes
USE_GNOME=	glib20 gtk30 intltool
USE_SQLITE=	yes
USE_GSTREAMER1=	yes libav
INSTALLS_ICONS=	yes

GLIB_SCHEMAS=	org.baedert.corebird.gschema.xml

post-extract:
	cd ${WRKSRC}/data && ${MV} org.baedert.corebird.desktop.in.in \
		corebird.desktop.in.in

# Replace locales files in right place
post-configure:
	${REINPLACE_CMD} -e 's|[$$][(]DATADIRNAME[)]|share|' \
		${WRKSRC}/po/Makefile

.include <bsd.port.mk>
